package com.kevin.spring.aop.aspectj;

import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAspectj {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@Test
	public void TestAsp() {

		ApplicationContext ctx = new ClassPathXmlApplicationContext(
				"/com/kevin/spring/aop/aspectj/ApplicationContext.xml");
		
		IPersonService service = ctx.getBean("personServiceImp",IPersonService.class);
		service.save("kevin");
	}
}
